/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 订单商品Entity
 */
@Table(name="biz_order_goods", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="trans_member_id", attrName="transMemberId", label="转发会员Id"),
		@Column(name="member_id", attrName="memberId", label="会员Id"),
		@Column(name="trans_activity_id", attrName="transActivityId", label="转发Id"),
		@Column(name="order_id", attrName="orderId", label="订单Id"),
		@Column(name="cart_id", attrName="cartId", label="购物车Id"),
		@Column(name="activity_id", attrName="activityId", label="活动Id"),
		@Column(name="brand_id", attrName="brandId", label="品牌Id"),
		@Column(name="cate_id", attrName="cateId", label="分类Id"),
		@Column(name="goods_id", attrName="goodsId", label="商品Id"),
		@Column(name="goods_spec_id", attrName="goodsSpecId", label="商品规格Id"),
		@Column(name="source_price", attrName="sourcePrice", label="原价"),
		@Column(name="sale_price", attrName="salePrice", label="销售价"),
		@Column(name="agent_price", attrName="agentPrice", label="代购费"),
		@Column(name="add_price", attrName="addPrice", label="加价"),
		@Column(name="num", attrName="num", label="数量"),
		@Column(name="amount", attrName="amount", label="合计"),
		@Column(name="remark", attrName="remark", label="备注"),
		@Column(name="service_num", attrName="serviceNum", label="售后数量"),
		@Column(name="service_amount", attrName="serviceAmount", label="售后金额"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
	}, orderBy="a.update_date DESC"
)
public class OrderGoods extends DataEntity<OrderGoods> {
	
	private static final long serialVersionUID = 1L;
	private String transMemberId;		// 转发会员Id
	private String memberId;		// 会员Id
	private String transActivityId;		// 转发Id
	private String orderId;		// 订单Id
	private String cartId;		// 购物车Id
	private String activityId;		// 活动Id
	private String brandId;		// 品牌Id
	private String cateId;		// 分类Id
	private String goodsId;		// 商品Id
	private String goodsSpecId;		// 商品规格Id

	public Double getSourcePrice() {
		return sourcePrice;
	}

	public void setSourcePrice(Double sourcePrice) {
		this.sourcePrice = sourcePrice;
	}

	private Double sourcePrice;		// 原价
	private Double salePrice;		// 销售价
	private Double agentPrice;		// 代购费

	public Double getAddPrice() {
		return addPrice;
	}

	public void setAddPrice(Double addPrice) {
		this.addPrice = addPrice;
	}

	private Double addPrice;		// 加价
	private Integer num;		// 数量
	private Double amount;		// 合计

	private String remark;		// 备注

	public OrderGoods() {
		this(null);
	}

	public OrderGoods(String id){
		super(id);
	}

	public String getTransMemberId() {
		return transMemberId;
	}

	public void setTransMemberId(String refMemberId) {
		this.transMemberId = refMemberId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public Integer getServiceNum() {
		return serviceNum;
	}

	public void setServiceNum(Integer serviceNum) {
		this.serviceNum = serviceNum;
	}

	private Integer serviceNum;		// 售后数量

	public Double getServiceAmount() {
		return serviceAmount;
	}

	public void setServiceAmount(Double serviceAmount) {
		this.serviceAmount = serviceAmount;
	}

	private Double serviceAmount;		// 售后金额

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getCartId() {
		return cartId;
	}

	public void setCartId(String cartId) {
		this.cartId = cartId;
	}

	public String getTransActivityId() {
		return transActivityId;
	}

	public void setTransActivityId(String transActivityId) {
		this.transActivityId = transActivityId;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getCateId() {
		return cateId;
	}

	public void setCateId(String cateId) {
		this.cateId = cateId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsSpecId() {
		return goodsSpecId;
	}

	public void setGoodsSpecId(String goodsSpecId) {
		this.goodsSpecId = goodsSpecId;
	}

	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public Double getAgentPrice() {
		return agentPrice;
	}

	public void setAgentPrice(Double agentPrice) {
		this.agentPrice = agentPrice;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}